<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改领养订单')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-WxOrder-edit" th:object="${wxOrder}">
        <input name="orderId" th:field="*{orderId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">支付单号：</label>
            <div class="col-sm-10">
                <input name="orderNo" id="orderNo" th:field="*{orderNo}" class="form-control" type="text" required readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">联系人：</label>
            <div class="col-sm-10">
                <input name="orderName" id="orderName" th:field="*{orderName}" class="form-control" type="text"
                       required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">电话：</label>
            <div class="col-sm-10">
                <input name="orderPhone" id="orderPhone" th:field="*{orderPhone}" class="form-control" type="text"
                       required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">邮寄地址：</label>
            <div class="col-sm-10">
                <input name="orderHost" id="orderHost" th:field="*{orderHost}" class="form-control" type="text"
                       required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label is-required">复核重量：</label>
            <div class="col-sm-10">
                <input name="orderReviewKg" id="orderReviewKg" th:field="*{orderReviewKg}" class="form-control"
                       type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">可加工重量：</label>
            <div class="col-sm-10">
                <input name="orderLeaveKg" id="orderLeaveKg" th:field="*{orderLeaveKg}" class="form-control" type="text"
                       required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">已付定金：</label>
            <div class="col-sm-10">
                <input name="orderFee" id="orderFee" th:field="*{orderFee}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">已付饲料费：</label>
            <div class="col-sm-10">
                <input name="orderIsdayfee" id="orderIsdayfee" th:field="*{orderIsdayfee}" class="form-control"
                       type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">待付饲料费：</label>
            <div class="col-sm-10">
                <input name="orderNodayfee" id="orderNodayfee" th:field="*{orderNodayfee}" class="form-control"
                       type="text" required>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script type="text/javascript">
    var prefix = ctx + "wechat/WxOrder";


    $("#form-WxOrder-edit").validate({
        focusCleanup: true
    });


    $("input[name='orderTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });


    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-WxOrder-edit').serialize());
        }
    }
</script>
</body>
</html>
